package org.jeecg.modules.basic.customer.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.common.api.vo.Result;
import org.jeecg.modules.basic.customer.entity.BasicCustomer;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * @Description: 客户信息表
 * @Author: jeecg-boot
 * @Date:   2023-07-21
 * @Version: V1.0
 */
public interface IBasicCustomerService extends IService<BasicCustomer> {

    /**
     * 查询所有客户供应商名称
     * @param name
     * @return
     */
    List<BasicCustomer> listAllCustomerSupplier(String name);

    /**
     * 导入
     * @param request
     */
    Result<String> importExcel(HttpServletRequest request);

    void updateUsed(String customerId);

    /**
     * 根据编码查询客户信息ID
     * @param code
     * @return
     */
    String getIdByCode(String code);
}
